﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manager/MasterPage.master" AutoEventWireup="true" CodeBehind="wfrmSalaPesquisa.aspx.cs" Inherits="MovieSystem.Manager.WebForm3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<form id="form1" runat="server">
<div class='TITULO_INFO'>Sala - Pesquisa</div>
    <div class='MAIN_DIV_TELAS_ADMIN'>
     <div><asp:TextBox ID="txtCampoPesquisa" runat="server" Width="357px"></asp:TextBox>
         <asp:Button ID="btnPesquisar" runat="server" Text="Pesquisar" 
             onclick="btnPesquisar_Click" />
         <asp:Button ID="btnNovo" runat="server" Text="Novo Registro" 
             onclick="btnNovo_Click" />
        </div>
       <div>
        <asp:Literal ID="litMensagem" runat="server"></asp:Literal></div>
     <div class='GRID_PESQUISA' runat="server" id="divPesquisa">             
         <asp:GridView ID="gvResultadoPesquisa" runat="server" Width="458px" 
             AutoGenerateColumns="False" BorderColor="#B3A2C7">
             <Columns>
              <asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="wfrmSalaCadastro.aspx?Acao=Editar&Id={0}"
                                                        HeaderText="Editar" 
                     Text="&lt;img src='/Imagens/editar.png' border='0' width='20px' alt='Alterar'&gt;" >
                 <HeaderStyle HorizontalAlign="Center" />
                 <ItemStyle Width="5px" HorizontalAlign="Center" />
                 </asp:HyperLinkField>
                <asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="wfrmSalaPesquisa.aspx?Acao=Excluir&Id={0}"
                HeaderText="Excluir" 
                     Text="&lt;img src='/Imagens/excluir.png' border='0'  width='20px' alt='Excluir'&gt;" >
                 <ItemStyle Width="5px" />
                 </asp:HyperLinkField>
                 <asp:BoundField DataField="Descricao" HeaderText="Descrição" />   
                  <asp:BoundField DataField="QtdCadeirasSala" HeaderText="Cadeiras" />             
             </Columns>
             <HeaderStyle ForeColor="SteelBlue" />
         </asp:GridView>
    </div>
    </div>
    </form>
</asp:Content>
